<script type="text/javascript">
function saveweixin(){
	$.CurrentNavtab.find('#weixin_form').submit();
	//$.CurrentNavtab.reload();
}
</script>
<div class="bjui-pageContent">
	<div style="margin-top: 10px;height:92%;">		
                 <form action="${ctx}/weixin/save" id="weixin_form" data-toggle="validate" method="post">
                 <fieldset style="margin-bottom:0px;position: relative;height:100%;">
                   <legend id="weixin1">公众号设置</legend>
                   <input type="hidden" name="weixin.id" value="${weixin.id!}"/>
                   <div class="form-group">
                       <label for="seq" class="control-label x85">token：</label>
                       <input type="text" class="form-control" name="weixin.token" data-rule="required" value="${weixin.token!}" size="45" placeholder=""/>
                   </div>
                   <div class="form-group">
                       <label for="seq" class="control-label x85">Appid：</label>
                       <input type="text" class="form-control" name="weixin.appid" data-rule="required" value="${weixin.appid!}" size="45" placeholder=""/>
                   </div> 
                   <div class="form-group">
                       <label for="seq" class="control-label x85">Appsecret：</label>
                       <input type="text" class="form-control" name="weixin.appsecret" data-rule="required" value="${weixin.appsecret!}" size="45" placeholder=""/>
                   </div>
                   <div class="form-group">
                       <label for="seq" class="control-label x85">公众号：</label>
                       <input type="text" class="form-control" name="weixin.code" value="${weixin.code!}" size="45" placeholder=""/>
                   </div> 
                   <div class="form-group">
                       <label for="seq" class="control-label x85">安全密钥：</label>
                       <input type="text" class="form-control" name="weixin.encodingaeskey" value="${weixin.encodingaeskey!}" size="45" placeholder=""/>
                       <div class="alert alert-warning form-inline"><i class="fa fa-warning"></i> 支持安全模式时需要填写</div>
                   </div>
                  </fieldset>  
                  <fieldset style="margin-bottom:0px;margin-top:35px;position: relative;height:100%;">
                   <legend id="weixin2">微信支付设置<div style="margin-left:5px;" class="alert alert-info form-inline"><i class="fa fa-info-circle"></i> 需要微信支付时填写</div></legend>  
                   <div class="form-group">
                       <label for="seq" class="control-label x85">商户号：</label>
                       <input type="text" class="form-control" name="weixin.partner" value="${weixin.partner!}" size="45" placeholder=""/>
                   </div>   
                   <div class="form-group">
                       <label for="seq" class="control-label x85">key：</label>
                       <input type="text" class="form-control" name="weixin.paternerkey" value="${weixin.paternerkey!}" size="45" placeholder=""/>
                   </div> 
                   </fieldset>                                                                                              
                 </form>
	</div>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li><button type="button" class="btn-close " data-icon="close">取消</button></li>
        <li><button type="button" class="btn-default btn-green" onclick="javascript:saveweixin();" data-icon="save">保存</button></li>
    </ul>
</div>